package com.yjha.ai.demos.web.controller;

import com.yjha.ai.demos.web.service.RecordingService;
import com.yjha.ai.demos.web.value.APIValue;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
public class RecordingController {

    @Resource
    private RecordingService recordingService;

    @GetMapping("/getHistory/{id}")
    public Map<String , Object> getHistory(@PathVariable("id") Integer id){
        return recordingService.getHistory(id);
    }
}
